﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HOOMT.CodeGenerator
{
    class JavaEntityInfo
    {
       
        public string className;
        public List<JavaEntityFieldInfo> fieldList;

        private JavaEntityInfo() { }
        public JavaEntityInfo(ObjectDiagram objD)
        {
            this.className = objD.Name;
            this.fieldList = new List<JavaEntityFieldInfo>();
            foreach (Attribute attr in objD.AttributeList)
            {
                JavaEntityFieldInfo field = new JavaEntityFieldInfo(attr);
                this.fieldList.Add(field);
            }

        }
    }
}
